﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;
using Abp.AutoMapper;
using FwProject.ShoppingMall.Com;

namespace FwProject.Com.Dto
{
    /// <summary>
    /// 创建订单模型
    /// </summary>
    [AutoMap(typeof(ShopOrder))]
    public class ShopOrderInput
    {
        /// <summary>
        /// 用户id
        /// </summary>
        //[Display(Name ="用户编号")]
        //public long UserId { get; set; }

        /// <summary>
        /// 订单编号
        /// </summary>
        //[Display(Name = "订单号")]
        //public string OrderNumber { get; set; }

        /// <summary>
        /// 支付方式
        /// </summary>
        [Display(Name = "支付方式")]
        public PayType PayType { get; set; } = PayType.微信支付;

        /// <summary>
        /// 总支付金额
        /// </summary>
        //[Display(Name = "总支付金额")]
        //public decimal PayTotal { get; set; } = 0m;

        ///// <summary>
        ///// 优惠金额
        ///// </summary>
        //[Display(Name = "优惠金额")]
        //public decimal PyaPreferentia { get; set; } = 0m;

        /// <summary>
        /// 应付总金额
        /// </summary>
        //[Display(Name = "应付总金额")]
        //public decimal PayAmount { get; set; } = 0m;

        /// <summary>
        /// 收货地址
        /// </summary>
        [Display(Name = "收货地址")]
        public Guid ReceivingAddress { get; set; }
    

        ///// <summary>
        ///// 付款时间
        ///// </summary>
        //[Display(Name = "付款时间")]
        //public DateTime? PayTime { get; set; }
        /// <summary>
        /// 买家留言
        /// </summary>
        //[Display(Name = "买家留言")]
        //public string OrderLeavingMessage { get; set; }
        /// <summary>
        /// 订单明细模型
        /// </summary>
        public List<ShopOrderAppDetailsInput> shopOrderDetailsInputList { get; set; }
        /// <summary>
        /// 优惠券编号
        /// </summary>
        public List<Guid> ShopUserCouponId { get; set; }
    }


}
